package com.ruoyi.ldzlsb.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 巡检明细对象 sb_inspection_detail
 *
 * @author anli
 * @date 2025-01-11
 */
public class SbInspectionDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 巡检单ID */
    private Long recordId;

    /** 巡检项ID */
    private Long itemId;
    
    /** 巡检配置ID - 兼容旧版本API */
    private Long configId;
    
    /** 巡检项名称 */
    @Excel(name = "巡检项名称")
    private String itemName;

    /** 巡检标准 */
    @Excel(name = "巡检标准")
    private String itemStandard;

    /** 数据类型（0数字 1文本 2选项 3是否） */
    private String dataType;
    
    /** 单位 */
    private String unit;
    
    /** 正常范围 */
    private String normalRange;
    
    /** 巡检结果（0正常 1异常） */
    @Excel(name = "巡检结果", readConverterExp = "0=正常,1=异常")
    private String result;

    /** 实测值 */
    @Excel(name = "实测值")
    private String measuredValue;

    /** 异常描述 */
    @Excel(name = "异常描述")
    private String abnormalDesc;

    /** 处理建议 */
    @Excel(name = "处理建议")
    private String suggestion;

    /** 图片路径（JSON格式） */
    private String images;

    /** 删除标志（0代表存在 1代表删除） */
    private String isDelete;

    public void setDetailId(Long detailId)
    {
        this.detailId = detailId;
    }

    public Long getDetailId()
    {
        return detailId;
    }

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }
    
    public Long getItemId()
    {
        return itemId;
    }
    
    public void setItemId(Long itemId)
    {
        this.itemId = itemId;
    }
    
    public Long getConfigId()
    {
        return configId;
    }
    
    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }
    
    public void setItemName(String itemName)
    {
        this.itemName = itemName;
    }

    public String getItemName()
    {
        return itemName;
    }

    public void setItemStandard(String itemStandard)
    {
        this.itemStandard = itemStandard;
    }

    public String getItemStandard()
    {
        return itemStandard;
    }
    
    public String getDataType()
    {
        return dataType;
    }
    
    public void setDataType(String dataType)
    {
        this.dataType = dataType;
    }
    
    public String getUnit()
    {
        return unit;
    }
    
    public void setUnit(String unit)
    {
        this.unit = unit;
    }
    
    public String getNormalRange()
    {
        return normalRange;
    }
    
    public void setNormalRange(String normalRange)
    {
        this.normalRange = normalRange;
    }

    public void setResult(String result)
    {
        this.result = result;
    }

    public String getResult()
    {
        return result;
    }

    public void setMeasuredValue(String measuredValue)
    {
        this.measuredValue = measuredValue;
    }

    public String getMeasuredValue()
    {
        return measuredValue;
    }

    public void setAbnormalDesc(String abnormalDesc)
    {
        this.abnormalDesc = abnormalDesc;
    }

    public String getAbnormalDesc()
    {
        return abnormalDesc;
    }

    public void setSuggestion(String suggestion)
    {
        this.suggestion = suggestion;
    }

    public String getSuggestion()
    {
        return suggestion;
    }

    public void setImages(String images)
    {
        this.images = images;
    }

    public String getImages()
    {
        return images;
    }

    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }

    public String getCheckResult() {
        return this.result;
    }

    public void setCheckResult(String result) {
        this.result = result;
    }
    
    public String getCheckValue() {
        return this.measuredValue;
    }
    
    public void setCheckValue(String value) {
        this.measuredValue = value;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("recordId", getRecordId())
            .append("itemId", getItemId())
            .append("itemName", getItemName())
            .append("itemStandard", getItemStandard())
            .append("dataType", getDataType())
            .append("unit", getUnit())
            .append("normalRange", getNormalRange())
            .append("result", getResult())
            .append("measuredValue", getMeasuredValue())
            .append("abnormalDesc", getAbnormalDesc())
            .append("suggestion", getSuggestion())
            .append("images", getImages())
            .append("isDelete", getIsDelete())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 